package com.wcar.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 *
 * @TableName tb_store
 */
@TableName(value ="tb_store")
@Data
public class Store implements Serializable {
    /**
     * 门店ID，主键
     */
    @TableId(type = IdType.AUTO)
    private Integer storeId;
    /**
     * 门店名称
     */
    private String storeName;

    @TableField(exist = false)
    private Integer usreId;
    /**
     * 门店地址
     */
    private String address;

    /**
     * 门店电话
     */
    private String phone;

    /**
     * 所在城市
     */
    private String city;

    /**
     * 所在省份
     */
    private String province;

    /**
     * 门店图片
     */
    private String storeimage;

    /**
     * 所在国家
     */
    private String country;

    /**
     * 经度
     */
    private Double longitude;

    /**
     * 纬度
     */
    private Double latitude;

    /**
     * 门店状态，如0表示营业中，1表示关闭
     */
    private String status;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 门店创建时间
     */
    private Date createTime;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 门店更新时间
     */
    private Date updateTime;
    @TableField(exist = false)
    private Double storeDistance;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    @TableField(exist = false)
    private Integer averageStar;
    @TableField(exist = false)
    private List<String> storeLabel;
    @TableField(exist = false)
    private Integer stationNumber;
    @TableField(exist = false)
    private Integer stationIdle;
    @TableField(exist = false)
    private Integer stationUsed;
    @TableField(exist = false)
    private String amount;
    @TableField(exist = false)
    private String credits;
    /**
     * 门店ID，主键
     */
    public Integer getStoreId() {
        return storeId;
    }

    /**
     * 门店ID，主键
     */
    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    /**
     * 门店名称
     */
    public String getStoreName() {
        return storeName;
    }

    /**
     * 门店名称
     */
    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    /**
     * 门店地址
     */
    public String getAddress() {
        return address;
    }

    /**
     * 门店地址
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 门店电话
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 门店电话
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 所在城市
     */
    public String getCity() {
        return city;
    }

    /**
     * 所在城市
     */
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * 所在省份
     */
    public String getProvince() {
        return province;
    }

    /**
     * 所在省份
     */
    public void setProvince(String province) {
        this.province = province;
    }

    /**
     * 门店图片
     */
    public String getStoreimage() {
        return storeimage;
    }

    /**
     * 门店图片
     */
    public void setStoreimage(String storeimage) {
        this.storeimage = storeimage;
    }

    /**
     * 所在国家
     */
    public String getCountry() {
        return country;
    }

    /**
     * 所在国家
     */
    public void setCountry(String country) {
        this.country = country;
    }

    /**
     * 经度
     */
    public Double getLongitude() {
        return longitude;
    }

    /**
     * 经度
     */
    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    /**
     * 纬度
     */
    public Double getLatitude() {
        return latitude;
    }

    /**
     * 纬度
     */
    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    /**
     * 门店状态，如0表示营业中，1表示关闭
     */
    public String getStatus() {
        return status;
    }

    /**
     * 门店状态，如0表示营业中，1表示关闭
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 创建人
     */
    public String getCreateBy() {
        return createBy;
    }

    /**
     * 创建人
     */
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    /**
     * 门店创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 门店创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新人
     */
    public String getUpdateBy() {
        return updateBy;
    }

    /**
     * 更新人
     */
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    /**
     * 门店更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 门店更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Store other = (Store) that;
        return (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId()))
            && (this.getStoreName() == null ? other.getStoreName() == null : this.getStoreName().equals(other.getStoreName()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getProvince() == null ? other.getProvince() == null : this.getProvince().equals(other.getProvince()))
            && (this.getStoreimage() == null ? other.getStoreimage() == null : this.getStoreimage().equals(other.getStoreimage()))
            && (this.getCountry() == null ? other.getCountry() == null : this.getCountry().equals(other.getCountry()))
            && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
            && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode());
        result = prime * result + ((getStoreName() == null) ? 0 : getStoreName().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getProvince() == null) ? 0 : getProvince().hashCode());
        result = prime * result + ((getStoreimage() == null) ? 0 : getStoreimage().hashCode());
        result = prime * result + ((getCountry() == null) ? 0 : getCountry().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

}
